-- drift_bottle
-- created by panyl
-- 地牢格子：漂流瓶
return {
    autoFight = function(grid)
        local pos       = grid:getPos();
        local dungeonId = DungeonM.getDungeonId();
        local layer     = DungeonM.currentLayer();

        if DungeonBossM.isBossLayer(dungeonId, layer) and
            not DungeonM.isAllMonsterDead() then
            return false;
        end

        DungeonActionM.go("drift_bottle", pos);
        return true;
    end,
};
